@section('css')
    <link rel="stylesheet" href="{{ asset('static/admin/plugins/iCheck/all.css') }}">
@endsection

@section('js')
    <script scr="{{ asset('static/admin/plugins/iCheck/icheck.min.js') }}"></script>
@endsection


{{ csrf_field() }}



<div class="form-group @if(session('errors.content')) has-error @endif">
    <label for="introduction" class="col-md-3 control-label">通知内容</label>
    <div class="col-md-5">
        <textarea class="form-control" id="content" name="content" required style="resize:vertical;"  rows="3"  placeholder="请输入通知内容">{{ $form_type == 'edit' && !old('content') ? $notice -> content : old('content') }}</textarea>
    </div>
    @if(session('errors.content'))
        <span class="help-block">{{ session('errors.content') }}</span>
    @endif
</div>

<div class="form-group @if(session('errors.times')) has-error @endif">
    <label for="password" class="col-md-3 control-label">通知次数</label>
    <div class="col-md-5">
        <input type="text" name="times" required id="times"  class="form-control" value="{{ $form_type == 'edit' && !old('times') ? $notice -> times : old('times') }}" placeholder="请输入通知次数">
    </div>
    @if(session('errors.times'))
        <span class="help-block">{{ session('errors.times') }}</span>
    @endif
</div>

{{--@if($form_type =='edit')--}}
{{--<div class="form-group">--}}
    {{--<label for="time" class="col-md-3 control-label">添加时间</label>--}}
    {{--<div class="col-md-5">--}}
        {{--<input type="text" name="time" class="form-control" readonly value="{{ $form_type == 'edit' && !old('updated_at') ? $notice -> updated_at : old('updated_at') }}">--}}
    {{--</div>--}}
{{--</div>--}}
{{--@endif--}}






